const pxtovw = require("postcss-px-to-viewport")

module.exports = {
    css: {
        loaderOptions: {
            postcss: {
                plugins: [
                    pxtovw({
                        // 配置视窗口尺寸
                        viewportWidth: 414,
                        viewportHeight: 736,
                        unitPrecision: 3,
                        viewportUnit: 'vw',
                        fontViewportUnit: 'vw',
                        selectorBlackList: ['.ignore', '.hairlines'],
                        minPixelValue: 1,
                        mediaQuery: false,
                        landscapeUnit: 'vh',
                        landscapeWidth: 736
                    })
                ]
            }

        }
    }
}